<?php
	$CI = &get_instance();
//	$CI->load->model('admin/quanlymodel', 'model');
	$CI->load->model('admin/quanlymodel', 'model');
	$message = $CI->model->get_message();
?>
<div id="welcome">
<h3 align="left">Thông tin nội bộ</h3>
<?php
	foreach($message as $message):
?>
	<form method="post">
    	<textarea style="width:100%; height:300px;" name="txtMessage"><?=$message->message?></textarea>
        <br/>
        <strong>Tình trạng website:</strong><br/>
        <select name="dllTrangThaiWebsite">
        	<option <?php if($message->activewebsite==0) echo 'selected="selected"'?> value="0">Ngừng hoạt động</option>
            <option <?php if($message->activewebsite==1) echo 'selected="selected"'?> value="1">Đang hoạt động</option>
        </select>
        
        <br/><br />
        <strong>Nội dung khi website ngừng hoạt động</strong>
		<textarea style="width:100%; height:300px;" name="txtNoiDungNgungHoatDong"><?=$message->noidungtatwebsite?></textarea>
        
        <input type="submit" name="btnMessage" value="Lưu hệ thống" />
    </form>
<?php
	endforeach;
?>
</div>